﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IterationLife.Mobile.CampusFootball.Student.ApiGateway.Dtos
{
    public class TrainHomepageDto
    {
        public List<CourseDto> RecommendedCourses { get; set; }

        public List<PlayerPositionDto> HotPositions { get; set; }

        public List<CourseCategoryDto> HotCourseCategories { get; set; }
    }

    public class PlayerPositionDto
    {
        public Guid Id { get; set; }

        public string Name { get; set; }

        public string Code { get; set; }
    }

    public class CourseDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 封面图
        /// </summary>
        public string Banner { get; set; }

        /// <summary>
        /// 难度
        /// </summary>
        public int Difficulty { get; set; }

        /// <summary>
        /// 动作数
        /// </summary>
        public int ActionNumber { get; set; }

        /// <summary>
        /// 参与人数
        /// </summary>
        public long ParticipationNumber { get; set; }
    }

    public class CourseDetailDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 封面图
        /// </summary>
        public string Banner { get; set; }

        /// <summary>
        /// 难度
        /// </summary>
        public int Difficulty { get; set; }

        /// <summary>
        /// 动作数
        /// </summary>
        public int ActionNumber { get; set; }

        /// <summary>
        /// 参与人数
        /// </summary>
        public long ParticipationNumber { get; set; }
        public List<ChapterDto> Chapters { get; set; }
    }

    public class CourseCategoryDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string Banner { get; set; }
    }

    public class ChapterDto
    {
        public Guid Id { get; set; }
        public Guid CourseId { get; set; }
        public string Name { get; set; }
        public List<LessonDto> Lessons { get; set; }
    }

    public class LessonDto
    {
        public Guid Id { get; set; }
        public string Name { get; set; }

        public string Banner { get; set; }
    }

    public class LessonDetailDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 视频
        /// </summary>
        public string Video { get; set; }

        /// <summary>
        /// 难度
        /// </summary>
        public int Difficulty { get; set; }

        /// <summary>
        /// 要求
        /// </summary>
        public string Requirement { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
    }

    //public class PagedData<TPageData>
    //{
    //    public PagedData(IEnumerable<TPageData> pageDatas, int page, int size, int totalCount)
    //    {
    //        PageDatas = pageDatas;
    //        TotalCount = totalCount;
    //        Page = page;
    //        Size = size;
    //        if (TotalCount % Size == 0)
    //            PageCount = TotalCount / Size;
    //        else
    //            PageCount = TotalCount / Size + 1;
    //    }

    //    public IEnumerable<TPageData> PageDatas { get; set; }
    //    public int Page { get; set; }

    //    public int Size { get; set; }

    //    public int TotalCount { get; set; }

    //    public int PageCount { get; private set; }
    //}
}